package cn.sylinx.hbatis.plugin.statement;

import cn.sylinx.hbatis.plugin.IPlugin;

public class StatementHandlerPlugin implements IPlugin {

	// sql语句处理器
	private String statementHandlerClass;

	public void setStatementHandlerClass(String statementHandlerClass) {
		this.statementHandlerClass = statementHandlerClass;
	}

	@Override
	public boolean start(Object... objects) {
		StatementHandlerManager.get().init(statementHandlerClass);
		return true;
	}

	@Override
	public boolean stop() {
		return true;
	}

}
